import grade from '../../Grade/Index.vue'
import gradeList from '../../Grade/List.vue'
import gradeMeber from '../../Grade/meber.vue'
import gradePrize from '../../Grade/prize.vue'
export default {
	components:{
		grade,
		gradeList,
		gradeMeber,
		gradePrize
	},
	data() {
		return {
			gradeShow: false, //输入学号
			gradeListShow: false, //领取积分
			gradeMeberShow: false, //个人中心
			gradePrizeShow:false, //领取积分页面
		}
	},
	methods: {
		nextGrade() { //输入学号点击下一步
			console.log('混入  输入学号点击下一步 ')
			this.gradeShow = false//关闭输入学号
			this.gradeListShow = true//打开积分列表
		},
		nextGradeList() { //领取积分点击下一步
			console.log('混入  领取积分点 ')
			this.gradeListShow = false//关闭积分列表
			this.gradePrizeShow = true//打开获取积分页面
			/*应该跳转到获得积分页面*/
			//this.gradeMeberShow = true//打开个人中心
		},
		nextgradePrize(){
			this.gradePrizeShow = false//关闭获取积分页面
			this.gradeMeberShow = true//打开个人中心
		},
		backInclude(){//领取积分返回
			this.gradeListShow = false
			if(this.recordNext=='gradeListShow'){
				this.recordShow = true//返回到我的记录页面
			}else{				
				this.gradeShow = true//返回到输入学号页面
			}
		},
		treasure(){//个人中心点击宝箱
			this.recordNext = 'gradeMeberShow'
			this.gradeMeberShow = false//关闭个人中心
			this.treasureShow = true//打开宝箱
		},
		record(){
			this.gradeMeberShow = false//关闭个人中心
			this.recordShow = true//打开我的记录
		},
		exit(){
			this.gradeMeberShow = false//退出个人中心 返回首页
		}
	},
	mounted() {

	}
}